package com.neusoft.yuejian_6.activity;

import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.jude.rollviewpager.RollPagerView;
import com.jude.rollviewpager.adapter.StaticPagerAdapter;
import com.jude.rollviewpager.hintview.ColorPointHintView;
import com.neusoft.yuejian_6.R;

import java.util.List;

import static com.neusoft.yuejian_6.R.id.rollPV;

public class CulInfoActivity  extends AppCompatActivity {
//    private ImageView left;
//    private ImageView collect;
//    private ImageView c_pic;
//    private TextView c_name;
//    private TextView c_address;
//    private TextView c_time;
//    private TextView c_info;
//    private TextView c_phone;
//    private int c_id;
//    private int flag;
//    private String cname;
//    private Button activity_club,course_club,video_club;
//    private Context mContex;
//    private List mDataList;
//    private LayoutInflater mLayoutInflater;
//    @Override
//    public void onCreate(Bundle savedInstanceState) {
//
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_cul_info);
//        initView();
//        getClubData();
//        initEvent();
//
//        // isBeCollected();
//    }
//
//
//    private void initView() {
//
//        collect = (ImageView) findViewById(R.id.collect);
//        left = (ImageView) findViewById(R.id.left);
//        c_name = (TextView) findViewById(R.id.c_name);
//        c_address = (TextView) findViewById(R.id.c_address);
//        c_time = (TextView) findViewById(R.id.c_time);
//        c_info = (TextView) findViewById(R.id.c_info);
//        c_phone = (TextView) findViewById(R.id.c_phone);
//        c_pic = (ImageView) findViewById(R.id.c_pic);
//
//        activity_club = (Button) findViewById(R.id.activity_club);
//        course_club = (Button) findViewById(R.id.course_club);
//        video_club = (Button) findViewById(R.id.video_club);
//
//    }
//
//    private void initEvent(){
//        final Bundle bundle = this.getIntent().getExtras();
//        final int c_id=bundle.getInt("c_id");
//
//
//        left.setOnClickListener(new View.OnClickListener(){
//            @Override
//            public void onClick(View view) {
//                finish();
//            }
//        });
//
//        activity_club.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//
//                Intent intent = new Intent(ClubDetailActivity.this,ClubActActivity.class);
//                Bundle bundle = new Bundle();
//                bundle.putInt("c_id", c_id);
//                intent.putExtras(bundle);
//                startActivity(intent);
//            }
//        });
//
//
//        course_club.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                Intent intent = new Intent(ClubDetailActivity.this,ClubCourseActivity.class);
//                Bundle bundle = new Bundle();
//                bundle.putInt("c_id", c_id);
//                intent.putExtras(bundle);
//                startActivity(intent);
//            }
//        });
//        video_club.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                Intent intent = new Intent(ClubDetailActivity.this,ClubVideoActivity.class);
//                Bundle bundle = new Bundle();
//                bundle.putInt("c_id", c_id);
//                intent.putExtras(bundle);
//                startActivity(intent);
//            }
//        });
//
//    }
//    private void getClubData() {
//        Bundle bundle = this.getIntent().getExtras();
//        //int cid=bundle.getInt("c_id");
//        //    System.out.print(cid);
//        String cname = bundle.getString("c_name");
//        String caddress = bundle.getString("c_address");
//        String cphone = bundle.getString("c_phone");
//        String cinfo = bundle.getString("c_info");
//        // int tprice = bundle.getInt("t_price");
//        String cpic = CLUB_PHOTO_URL + bundle.getString("c_pic");
//        String ctime = bundle.getString("c_time");
//        c_name.setText(cname);
//        c_address.setText(caddress);
//        c_phone.setText(cphone);
//        c_info.setText(cinfo);
//        c_time.setText(ctime);
//        Picasso.with(this).load(cpic).into(c_pic);
//
//    }
}